package com.RMP
{
    import flash.display.*;
    import flash.events.*;
    import flash.text.*;
    import com.greensock.*;

    public class ShortTextBold extends MovieClip
    {
        public var field:TextField;
        public var objName:String = "ShortTextBold";
        var fadeSpeed:Number;
        public var btnOver:Sprite;
        public var idNum:Number;
        public var btn:Sprite;
        var myRoot:MovieClip;
        var myText:String;

        public function ShortTextBold(param1:MovieClip, param2:String, param3:Number) : void
        {
            objName = "ShortTextBold";
            myRoot = param1;
            myText = param2;
            idNum = param3;
            buildField();
            myRoot.stage.addEventListener(Event.RESIZE, onResizer);
            doResize();
            return;
        }

        function buildField() : void
        {
            var _loc_1:* = undefined;
            _loc_1 = new TextFormat();
            _loc_1.font = new HelveticaBoldEmbed().fontName;
            _loc_1.size = 14;
            _loc_1.letterSpacing = 0;
            _loc_1.leftMargin = 0;
            _loc_1.rightMargin = 0;
            _loc_1.color = myRoot.coldColor;
            btn = new Sprite();
            field.autoSize = "left";
            field.antiAliasType = AntiAliasType.ADVANCED;
            field.gridFitType = GridFitType.PIXEL;
            field.selectable = false;
            field.embedFonts = true;
            field.defaultTextFormat = _loc_1;
            field.htmlText = myText;
            field.y = -1;
            btn.addChild(field);
            addChild(btn);
            return;
        }

        function doResize() : void
        {
            return;
        }

        function onResizer(event:Event)
        {
            doResize();
            return;
        }

        public function fadeInShell() : void
        {
            TweenMax.to(this, fadeSpeed, {alpha:1, overwrite:true});
            return;
        }

    }
}
